package com.hdwe.tools.pm.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hdwe.tools.pm.domain.PmTag;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 标签视图对象 pm_tag
 *
 * @author s
 * @date 2024-12-10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PmTag.class)
public class PmTagVo extends BaseEntityVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 标签类型
     */
    @ExcelProperty(value = "标签类型")
    private String tagType;

    /**
     * 标签名
     */
    @ExcelProperty(value = "标签名")
    private String tagName;

    /**
     * 样式
     */
    private String classStyle;

    /**
     * 状态（enable正常 disable停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "e=nable正常,d=isable停用")
    private String status;

    /**
     * 创建部门
     */
    @ExcelProperty(value = "创建部门")
    private Long createDept;

    /**
     * 创建者
     */
    @ExcelProperty(value = "创建者")
    private Long createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改者
     */
    @ExcelProperty(value = "修改者")
    private Long updateBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date updateTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
